#ifndef __LED_H__
#define __LED_H__

#define BSP_LED1_GPIO 13
#define BSP_LED2_GPIO 15

typedef enum{
    LED_OFF,
    LED_ON,
    LED_BLINK
}led_state_t;

typedef struct 
{
    struct{
        uint8_t led_num;
    }init;
    struct{
        led_state_t led_state;
    }ctrl;
    struct{
        uint8_t current;
    }data;
    QueueHandle_t queue;
    TaskHandle_t task_handle;
    TaskHandle_t blink_task_handle;
}led_obj_t;

int8_t led_ctrl(led_obj_t* led_obj, led_state_t state);
void led_app_main(void);

#endif
